
# 2.打印1~100所有的偶数
# n2=2
# while n2<=100:
#     print(n2)
# #     n2+=2
# n2=1
# while n2<=100:
#    if n2%2==0:
#        print(n2)
#    n2+=1


# 4.打印1~20所有数的乘积
# n4=1
# cj=1
# while n4<=20:
#     cj*=n4
#     n4+=1
# print(f"打印1~20所有数的乘积{cj}")
#
# # 5.打印1~30所有数的平方的和
# n5=1
# sum1=0
# while n5<=30:
#     sum1 += n5*n5  #sum1=sum1+ n5*n5
#     n5 += 1
# print(f"打印1~30所有数的平方的和{sum1}")

# 6.打印1~50所有奇数的和
# 7.打印1~20所有奇数的乘积
# n7=1
# cj=1
# while n7<=20:
#     cj*=n7
#     n7+=2
# print(f"打印1~20所有数的乘积{cj}")

# 8.打印1~40所有奇数的平方的和
# n8=1
# sum8=0
# while n8<=40:
#     sum8+=n8**2
#     n8+=2
# print(sum8)  #10660


# 10.打印 1-100之内小于等于30 和 大于等于 70的所有数
n=1
while n<=100:
    if n<=30 or n>=70:
        print(n)
    n+=1










